내이름의 의미는 **서로 힘쓰라**는 의미다
심리학과는 **인간의 마음과 행동을 과학적으로 연구**하는 학문이다.
# 자료분석
##ggplot2의 mpg데이터를 분석하기
library(ggplot2)
우리는 자동차 연비데이터인 mpg를 이용하여, 배기량과 도시연비의 관계를 그래프로 살벼보겠다.
먼저 mpg의 데이터를 살펴보자,
head(mpg,10)
## # A tibble: 10 x 11
## manufacturer model displ year cyl trans drv cty hwy fl class
## <chr> <chr> <dbl> <int> <int> <chr> <chr> <int> <int> <chr> <chr>
## 1 audi a4 1.8 1999 4 auto~ f 18 29 p comp~
## 2 audi a4 1.8 1999 4 manu~ f 21 29 p comp~
## 3 audi a4 2 2008 4 manu~ f 20 31 p comp~
## 4 audi a4 2 2008 4 auto~ f 21 30 p comp~
## 5 audi a4 2.8 1999 6 auto~ f 16 26 p comp~
## 6 audi a4 2.8 1999 6 manu~ f 18 26 p comp~
## 7 audi a4 3.1 2008 6 auto~ f 18 27 p comp~
## 8 audi a4 q~ 1.8 1999 4 manu~ 4 18 26 p comp~
## 9 audi a4 q~ 1.8 1999 4 auto~ 4 16 25 p comp~
## 10 audi a4 q~ 2 2008 4 manu~ 4 20 28 p comp~
산포도를 그려 두 연비간의 관계를 살펴보자
ggplot(mpg,aes(x=displ, y=cty)) +
geom_point(aes(color = displ, size = class))
## Warning: Using size for a discrete variable is not advised.